package cn.yunyichina.provider.base.dao;

import cn.yunyichina.provider.base.vo.OrgUserVo;
import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 *
 * @Author auto_gen_by_tool
 * @CreatedTime 2016-11-07 14:43:04
 */
@Repository
@MyBatisRepository
public interface OrgUserDao extends BaseDao<cn.yunyichina.provider.base.entity.OrgUser> {
	List<OrgUserVo> getOrgUser(Map<String, Object> params);

	long selectOrgUserCount(Map<String, Object> params);

	List<OrgUserVo> getOrgUserList(Map<String, Object> params);

	long getOrgUserListCount(Map<String, Object> params);

	Object selectIntroducerMessageByUserId(Map<String, Object> params);

	OrgUserVo getOrgUserByUserId(@Param("user_id") String userId);

	List<Map<String,Object>> getOrgUserAndDeptUser(@Param("introducerId") String introducerId , @Param("enableFlag") Short enableFlag);
}